package Demo.demo6;

public class BankDemo {
    public static void main(String[] args) {
        Account account = new Account();
        account.deposit(100);
        try {
            account.withdraw(600);
        } catch (BankException e) {
            e.printStackTrace();{
                System.out.println(e.getMsg()+"你的账号上还差"+e.getAmount());
            }
        }
    }
}
